//
//  ContentsViewCtrl.h
//  ClienHD
//
//  Created by Sangwoo Park on 11. 1. 24..
//  Copyright 2011 Student. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HtmlDown.h"

@interface ContentsViewCtrl : UIViewController <UISplitViewControllerDelegate, HtmlDownDelegate> {
	UIToolbar *menuTB;
	UIWebView *contentsWV;
	UIPopoverController *menuPOC;
	UIBarButtonItem *titleLabel;

	NSString *commentTemplate;
	NSString *contentTemplate;
	NSString *imageTemplate;

	HtmlDown *htmlDown;
	UIView *loadingView;
	UIActivityIndicatorView *spinningWheel;
}

@property (nonatomic, retain) IBOutlet UIToolbar *menuTB;
@property (nonatomic, retain) IBOutlet UIWebView *contentsWV;
@property (nonatomic, retain) UIPopoverController *menuPOC;

@property (nonatomic, retain) UIView *loadingView;
@property (nonatomic, retain) UIActivityIndicatorView *spinningWheel; 

- (void)loadTemplate;
- (void)LoadContent:(NSString *)strAddr;
- (void)LoadContentDone:(NSData *)pageData;

- (void)makeWaitMark;
- (void)showWaitMark;
- (void)hideWaitMark;

@end
